package com.hc.model.code04.test7;

/**
 * @version v1.0
 * @ClassName: HouseOwner
 * @Description: 房主对象（具体的同事）
 * @Author: HC
 */
public class HouseOwner extends Person{

    public HouseOwner(String name, Mediator mediator) {
        super(name, mediator);
    }

    // 和中介联系(沟通)
    public void contact(String message) {
        mediator.contact(message, this);
    }

    public void getMessage(String message) {
        System.out.println("房主" + name + "获取到的信息是：" + message);
    }
}
